import { isNumber } from "./isNumber";

/**
 * @description 是否下标越界
 * @author lihh
 * @param idx 判断的索引
 */
export function isIndexOutOfBounds(idx: number): boolean {
  return !isNumber(idx) || idx < 0;
}
